home *** CD-ROM | disk | FTP | other *** search
/ PsL Monthly 1993 December / PSL Monthly Shareware CD-ROM (December 1993).iso / prgmming / win / vb / getput.exe / GETPUT.DOC < prev    next >
Encoding:
Text File  |  1991-08-13  |  1.2 KB  |  27 lines

  1.  
  2. Visual Basic is pretty spiffy, but leaves out some standard features
  3. available in GW-BASIC and QuickBASIC.  It's possible to get at most of these
  4. through API calls, but that can require a bit of work.
  5.  
  6. The attached program uses a subroutine to "pretty up" the API call (BitBlt)
  7. that serves like the graphic Get and Put statements in DOS Basic.  You pass 
  8. (by value) the hDC's (just stick ".hDC" on whatever pictures you're using) 
  9. of the two pictures involved, followed by the coords in the normal Get/Put 
  10. order, and finish with a Put-like mode (a global constant).
  11.  
  12. The interactive example should make everything clear, and it should be easy
  13. to extract the core of the sub and use it in your own programs.  BitBlt 
  14. (and companion StretchBlt) can do more that just a plain Get/Put, but this 
  15. subroutine gives you access to the main function.
  16.  
  17.  
  18.                                              Wendell Martin
  19.                                               [73737,1237]
  20.  
  21.  
  22.  
  23.  
  24. Distributed by Public (software) Library.
  25. For a catalog of more than 3000 disks of pd/shareware, call 1-800-2424-PSL
  26. or write Public (software) Library, P.O.Box 35705, Houston, TX 77235-5705.
  27.